<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<h1 v-if="flag">如果falg为true,则展示,否则不显示</h1>
			<div v-if="type=='A'">A</div>
			<div v-else-if="type=='B'">B</div>
			<div v-else-if="type=='C'">C</div>
			<div v-else>Not A/B/C</div>
		</div>
		<script>
			let vm = new Vue({
				el: '#app',
				data: {
					flag: false,
					type: 'A'
				}
			});
		</script>
	</body>
</html>
